<?php
/**
 *  In/Index.php
 *
 *  @author
 *  @package   Smscom
 *  @version
 */

/**
 *  in_index
 *
 *  @author
 *  @access    public
 *  @package   Smscom
 */
class MyApp_Form_InIndex extends MyApp_ActionForm {
    var $use_validator_plugin = false;

    /**
     *  @access   private
     *  @var      array
     *
     */
    var $form = array (
            'product_type' => array(
                    'type'        => VAR_TYPE_INT,
                    'form_type'   => FORM_TYPE_HIDDEN,
                    'required'    => false,
                    'name'        => 'Thể loại',
                    'option'      => "ProductCategory,product_category_name",
                    'inAttr'      => "ProductCategory,product_category_name",
            ),
            'product_name' => array(
                    'type'        => VAR_TYPE_STRING,
                    'form_type'   => FORM_TYPE_TEXT,
                    'required'    => false,
                    'name'        => 'Tên'
            ),
            'product_count' => array(
                    'type'        => VAR_TYPE_INT,
                    'form_type'   => FORM_TYPE_TEXT,
                    'required'    => false,
                    'name'        => 'Số Lượng'
            ),
            'product_price' => array(
                    'type'        => VAR_TYPE_INT,
                    'form_type'   => FORM_TYPE_TEXT,
                    'required'    => false,
                    'name'        => 'Giá Bán'
            ),
            'product_picture' => array(
                    'type'        => VAR_TYPE_FILE,
                    'form_type'   => FORM_TYPE_FILE,
                    'required'    => false,
                    'name'        => 'Hình Ảnh',
            ),
    );
    
}
/**
 *  index
 *
 *  @author
 *  @access     public
 *  @package    Smscom
 */
class MyApp_Action_InIndex extends MyApp_ActionClass2 {
    function authenticate() {
        parent::authenticate();
        return null;
    }
    /**
     *  index prepare function
     *
     *  @access    public
     *  @return    string
     */
    function prepare() {
        return null;
    }
    /**
     *  index perform function
     *
     *  @access    public
     *  @return    string
     */
    function perform() {
        return 'in_index';
    }
}
